#{extends 'frame.html' /}

#{set title:'审核任务' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/admin/audit-task.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />
<style type="text/css">
	.infoLine p{padding-top:8px;}
</style>
#{/set}

#{authenticityToken /}

<div class="tabbedCard" id="waitingTaskPanel">

	<div class="contentTitle">任务处理</div>

	<div class="tabSwitchWrapper">

		<a class="tab-cell taskTypeTab focus" href="javascript:;"  >待审核任务</a>

	</div>



	<div id="taskFilterPanel">
		<span class="floatLeft mr10">用户昵称</span>

		<input type="text" id="nick" class="inputText floatLeft required mr10" />

		<a class="stdColorButton floatLeft queryBtn" href="javascript:;" id="queryBtn">查询</a>

	</div>

	<div>

		<table class="normTable">

			<thead>

				<tr>

					<td style="width:30%">宝贝信息</td>

					<td>任务编号</td>

					<td>用户昵称</td>

					<td>分享任务数</td>
					
					<td>预估订单数</td>

					<td>创建时间</td>

					<td>操作</td>

				</tr>

			</thead>

			<tbody id="taskContainer"></tbody>

		</table>

		<div id="noMsg">

			<div class="warnBox">

				<span class="iconfont">&#xf00b6;</span>

				没有任务!

			</div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />

		</div>

		<div class="pagin-btm clearFix"style="display: none;">

			<div class="pagination"></div>

		</div>

	</div>

</div>





<div class="contentCard" id="taskDetail">

	

</div>





<textarea id="taskDetailEmptyTemp" class="muban">

	<div class="contentTitle">

		<span class="iconfont">&#xf0142;</span>

		任务详情

	</div>

	<div class="contentBody" id="taskDetailPanel">

		<div class="infoLine">

			<span class="floatLeft green lbl">商品地址</span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品标题</span>

			<span class="mr10"></span>

		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">商品价格</span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品主图</span>

			<span class="mr10"></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">分享任务数</span>

			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">代销任务数</span>

			<span class="mr10"></span>

			<span class="mr10">单</span>

			<span class="mr10 orange">X</span>

			<span class="mr10"></span>

			<span class="mr10">元</span>

		</div>
		<div class="infoLine">

			<span class="floatLeft green lbl">分享任务截止时间</span>

			<span class="mr10"></span>

		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">订单截止时间 </span>

			<span class="mr10"></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">分享文案</span>
			
			<span class="mr10"></span>
			
		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">方案图片</span>
			<span class="mr10"></span>	
		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">其它要求</span>
			
			<span class="mr10"></span>
			
		</div>
	</div>

</textarea>

<!-- 任务详情模板-->

<textarea id="taskDetailTemp" class="muban">

	{{#results}}

	<div class="contentTitle">

		<span class="iconfont">&#xf0142;</span>

		任务详情

	</div>

	<div class="contentBody" id="taskDetailPanel">

		<div class="infoLine">

			<span class="floatLeft green lbl">商品地址</span>

			<p>{{itemUrl}}</p>
			<span class="mr10"></span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品标题</span>

			<p>{{itemTitle}}</p>
			<span class="mr10"></span>

		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">商品价格</span>

			<span class="mr10">{{itemPriceStr}}</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">商品主图</span>

			<a href="{{itemPic}}" target="_blank" >

				<img class="item-pic" src="{{itemPic}}" />

			</a>
			<span class="mr10"></span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">分享任务数</span>

			<span class="mr10">{{totalShareCount}}</span>
			<span class="mr10">单</span>

		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">代销任务数</span>

			<span class="mr10">{{totalOrderCount}}</span>

			<span class="mr10">单</span>

			<span class="mr10 orange">X</span>

			<span class="mr10">{{cashbackStr}}</span>

			<span class="mr10">元</span>

		</div>
		<div class="infoLine">

			<span class="floatLeft green lbl">分享截止时间</span>

			<span class="mr10">{{shareDeadlineStr}}</span>

		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">订单截止时间 </span>

			<span class="mr10">{{orderDeadlineStr}}</span>

		</div>

		<hr/>

		<div class="infoLine">

			<span class="floatLeft green lbl">分享文案</span>
			
			<p>{{shareText}}</p>
			<span class="mr10"></span>			
		</div>

		<div class="infoLine">

			<span class="floatLeft green lbl">方案图片</span>
			
			{{#shareImageUrlsStr}}

			<a href="{{.}}" target="_blank" >

				<img class="item-pic" src="{{.}}" />

			</a>

			{{/shareImageUrlsStr}}
			<span class="mr10"></span>
			
		</div>
		
		<div class="infoLine">

			<span class="floatLeft green lbl">其它要求</span>
			
			<p>{{other}}</p>
			<span class="mr10"></span>
			
		</div>

		<div class="infoLine">

			<div class="centerbtn">

				<span class="mr10">

					<a class="stdColorButton access" href="#waitingTaskPanel" id="examinePassBtn" tid="{{idStr}}">审核通过</a>

				</span>

				<span class="mr10">

					<a class="stdColorButton refuse" href="#waitingTaskPanel" id="examineNotPassBtn">审核未通过</a>

				</span>

			</div>

		</div>

	</div>

	{{/results}}

</textarea>

<!-- 任务列表模板-->

<textarea id="taskTemp" class="muban">
	{{#results}}
	<tr>
		<td class="item-list">
			<div class="item-box">
				<div class="pic">
					<img src="{{itemPic}}" />
				</div>
				<p class="title">{{itemTitle}}</p>
			</div>

		</td>

		<td>{{taskId}}</td>

		<td>{{sellerNick}}<br/>{{nameStr}}</td>


        <td>{{totalShareCount}}</td>
        
        <td>{{totalOrderCount}}</td>

		<td>{{createTimeStr}}</td>

		<td>
			<a class="stdColorButton examine isWorking" href="#taskDetail" tid="{{idStr}}">审核</a>
		</td>

	</tr>
	{{/results}}

</textarea>



<!--拒绝理由窗口-->

<div class="popWrapper" id="refuseReasonWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改意见</h3>

		<div class="modalWndInner">

			<div id="reasonShower">

				<textarea class="inputText" id="txtReason"></textarea>

				<span id="error"></span>

			</div>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnRefuse" href="javascript:;" class="botButton" bid="">确认</a>

		</div>

	</div>

</div>



<!-- templates -->

#{authenticityToken /}



#{set 'moreScripts'}

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/admin/audit-wdTask.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'wdTask';</script>

#{/set}